package com.example.hhh.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.hhh.model.pojo.Workorder;
import com.example.hhh.model.vo.WorkorderVO;
import com.example.hhh.service.WorkorderService;
import com.example.hhh.mapper.WorkorderMapper;
import org.springframework.stereotype.Service;

/**
* @author 20642
* @description 针对表【workorder】的数据库操作Service实现
* @createDate 2025-06-20 10:01:06
*/
@Service
public class WorkorderServiceImpl extends ServiceImpl<WorkorderMapper, Workorder>
    implements WorkorderService{

    @Override
    public IPage<WorkorderVO> getWorkorderPageWithDetails(Page<WorkorderVO> page, String search, Integer status, Integer priority) {
        return baseMapper.selectWorkorderPageWithDetails(page, search, status, priority);
    }

    @Override
    public WorkorderVO getWorkorderWithDetails(Integer orderId) {
        return baseMapper.selectWorkorderWithDetails(orderId);
    }
}




